package com.fei.cloudserviceinterface.service;

import com.fei.cloudserviceinterface.domain.User;
import com.fei.cloudserviceinterface.service.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name= "cloud-eureka-provide", fallback= UserServiceFallback.class)
public interface UserService {

    @GetMapping("/user/getUserById/{userId}")
    User getUserById(@PathVariable("userId") Integer userId);

}
